export function time(x) {
    let date = new Date(x);
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    let day = date.getDate();
    let hour = date.getHours();
    let mini = date.getMinutes();
    return `${year}-${month}-${day} ${(hour + "").length == 1 ? "0" + hour : hour}:${(mini + "").length == 1 ? "0" + mini : mini }`;
}